package com.whalehearing.tingyou.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.whalehearing.tingyou.common.annotation.Excel;
import com.whalehearing.tingyou.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 语音转文字记录对象 hearing_translation_record
 *
 * @author zengjun-qxm
 * @date 2024-10-29
 */
@Data
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName("hearing_translation_record")
@ApiModel(value = "HearingTranslationRecord", description = "语音转文字记录实体")
public class HearingTranslationRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 翻译记录id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("翻译记录id")
    private Long translationRecordId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @ApiModelProperty("用户id")
    private Integer uid;

    /**
     * 用户名
     */
    @Excel(name = "用户姓名")
    @ApiModelProperty("用户姓名")
    private String username;

    /**
     * 翻译标题
     */
    @Excel(name = "翻译标题")
    @ApiModelProperty("翻译标题")
    private String recordTitle;

    /**
     * 翻译内容
     */
    @Excel(name = "翻译内容")
    @ApiModelProperty("翻译内容")
    private String recordContent;

    /**
     * 转换日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "转换日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("转换日期")
    private Date convertedDate;

    /**
     * 是否删除 0未删除 1已删除
     */
    @ApiModelProperty("是否删除 0未删除 1已删除")
    private Integer isDeleted;

}
